<template>
    <div>
        <div class="item" v-for='(item, index) in ticket' :key='index'>
            <span class="iconfont">&#xe61e;</span>
            {{item.title}}
            <div v-if='item.children'>
                <list :ticket='item.children'></list>    
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: 'list',
    props: {
        ticket: Array
    }
}
</script>
<style lang="stylus" scoped>
    .item
        padding .25rem .25rem 0 .3rem
</style>
